package com.livesource.client.web.project;

import com.google.gwt.core.client.GWT;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.user.client.ui.HTML;
import com.livesource.client.InitializeLiveSource;
import com.livesource.client.LiveSourceGlobalVariables;

/**
 * 
 * @UserInterface
 */
public class ButtonEditProject extends HTML {

	public ButtonEditProject() {

		this.setHTML("<a href='#'><img src='" + GWT.getModuleName()
				+ "/liveSource/images/list.gif' title='Project Info'></a>");

		this.addClickHandler(new ClickHandler() {

			@Override
			public void onClick(ClickEvent event) {

				InitializeLiveSource.vpLiveSource.clear();

				InitializeLiveSource.vpLiveSource.add(new ProjectForm(
						LiveSourceGlobalVariables.currentProject));
			}
		});
	}
}
